﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@ViewData["site_name"]后台 - v6cms</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../layuiadmin/style/admin.css" media="all">
    <script>
        /^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
    </script>
</head>

<body class="layui-layout-body">
    <div id="LAY_app">
        <div class="layui-layout layui-layout-admin">
            <div class="layui-header">
                <!-- 头部区域 -->
                <ul class="layui-nav layui-layout-left">
                    <li class="layui-nav-item layadmin-flexible" lay-unselect>
                        <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
                            <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;" layadmin-event="refresh" title="刷新">
                            <i class="layui-icon layui-icon-refresh-3"></i>
                        </a>
                    </li>
                </ul>
                <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
                    <li class="layui-nav-item layui-hide-xs">
                        <a href="/" target="_blank">
                            网站首台
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <a lay-href="app/message/index.html" layadmin-event="message" lay-text="消息中心">
                            <i class="layui-icon layui-icon-notice"></i>

                            <!-- 如果有新消息，则显示小圆点 -->
                            <span class="layui-badge-dot"></span>
                        </a>
                    </li>
                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="theme">
                            <i class="layui-icon layui-icon-theme"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="note">
                            <i class="layui-icon layui-icon-note"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="fullscreen">
                            <i class="layui-icon layui-icon-screen-full"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;">
                            <cite>@User.Identity.Name</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="/v6admin/edit_my_password">修改密码</a></dd>
                            <hr>
                            <dd style="text-align: center;"><a href="/v6admin/logout">退出</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="about"><i class="layui-icon layui-icon-more-vertical"></i></a>
                    </li>
                    <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
                        <a href="javascript:;" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
                    </li>
                </ul>
            </div>

            <!-- 侧边菜单 -->
            <div class="layui-side layui-side-menu">
                <div class="layui-side-scroll">
                    <div class="layui-logo" lay-href="/v6admin/home/console">
                        <span>v6cms内容管理系统</span>
                    </div>

                    <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
                        <li data-name="home" class="layui-nav-item layui-nav-itemed">
                            <a href="javascript:;" lay-tips="主页" lay-direction="2">
                                <i class="layui-icon layui-icon-home"></i>
                                <cite>主页</cite>
                            </a>
                            <dl class="layui-nav-child layui-this">
                                <dd>
                                    <a lay-href="/v6admin/home/console?white_board">控制台</a>
                                </dd>
                            </dl>
                        </li>
                        @if ((bool)ViewData["cms"])
                        {
                            <li data-name="cms" class="layui-nav-item">
                                <a href="javascript:;" lay-tips="cms" lay-direction="2">
                                    <i class="layui-icon layui-icon-template-1"></i>
                                    <cite>CMS</cite>
                                </a>
                                <dl class="layui-nav-child">
                                    @if ((bool)ViewData["column"])
                                    {
                                        <dd><a lay-href="/v6admin/column">网站栏目</a></dd>
                                    }
                                    @if ((bool)ViewData["article"])
                                    {
                                        <dd><a lay-href="/v6admin/article">文章管理</a></dd>
                                    }
                                    @if ((bool)ViewData["comment"])
                                    {
                                        <dd><a lay-href="/v6admin/comment">评论管理</a></dd>
                                    }
                                </dl>
                            </li>
                        }
                        @if ((bool)ViewData["create_html"])
                        {
                            <li data-name="create_html" class="layui-nav-item">
                                <a href="javascript:;" lay-tips="cms" lay-direction="2">
                                    <i class="layui-icon layui-icon-fonts-html"></i>
                                    <cite>生成html</cite>
                                </a>
                                <dl class="layui-nav-child">
                                    @if ((bool)ViewData["create_html/article"])
                                    {
                                        <dd><a lay-href="/v6admin/create_html/article">生成文章html</a></dd>
                                    }
                                </dl>
                            </li>
                        }
                        @if ((bool)ViewData["link"])
                        {
                            <li data-name="link" class="layui-nav-item">
                                <a href="javascript:;" lay-tips="link" lay-direction="2">
                                    <i class="layui-icon layui-icon-link"></i>
                                    <cite>链接管理</cite>
                                </a>
                                <dl class="layui-nav-child">
                                    @if ((bool)ViewData["link_category"])
                                    {
                                        <dd><a lay-href="/v6admin/link_category">链接分类</a></dd>
                                    }
                                    @if ((bool)ViewData["link_manager"])
                                    {
                                        <dd><a lay-href="/v6admin/link_manager">链接管理</a></dd>
                                    }
                                </dl>
                            </li>
                        }
                        @if ((bool)ViewData["member"])
                        {
                            <li data-name="member" class="layui-nav-item">
                                <a href="javascript:;" lay-tips="link" lay-direction="2">
                                    <i class="layui-icon layui-icon-face-smile-b"></i>
                                    <cite>会员管理</cite>
                                </a>
                                <dl class="layui-nav-child">
                                    @if ((bool)ViewData["member_manager"])
                                    {
                                        <dd><a lay-href="/v6admin/member_manager">会员管理</a></dd>
                                    }
                                    @if ((bool)ViewData["ask"])
                                    {
                                        <dd><a lay-href="/v6admin/ask">管理提问</a></dd>
                                    }
                                    @if ((bool)ViewData["comment"])
                                    {
                                        <dd><a lay-href="/v6admin/ask_comment">问答评论</a></dd>
                                    }
                                </dl>
                            </li>
                        }
                        @if ((bool)ViewData["ip_address"])
                        {
                            <li data-name="ip" class="layui-nav-item">
                                <a lay-href="/v6admin/ip_address" lay-tips="IP管理" lay-direction="2">
                                    <i class="layui-icon layui-icon-windows"></i>
                                    <cite>IP地址管理</cite>
                                </a>
                            </li>
                        }
                        <li data-name="layui_demo" class="layui-nav-item">
                            <a href="/layuiadmin_views/index.html" target="_blank" lay-tips="Layui示例" lay-direction="2">
                                <i class="layui-icon layui-icon-survey"></i>
                                <cite>Layui示例</cite>
                            </a>
                        </li>
                        @if ((bool)ViewData["app"])
                        {
                            <li data-name="app" class="layui-nav-item">
                                <a href="javascript:;" lay-tips="应用" lay-direction="2">
                                    <i class="layui-icon layui-icon-app"></i>
                                    <cite>应用</cite>
                                </a>
                                <dl class="layui-nav-child">
                                    @if ((bool)ViewData["code_generate"])
                                    {
                                        <dd><a lay-href="/v6admin/code_generate">代码生成器</a></dd>
                                    }
                                    @if ((bool)ViewData["advertisement"])
                                    {
                                        <dd><a lay-href="/v6admin/advertisement">广告管理</a></dd>
                                    }
                                    @if ((bool)ViewData["leader_mailbox"])
                                    {
                                        <dd><a lay-href="/v6admin/leader_mailbox">领导信箱</a></dd>
                                    }
                                    @if ((bool)ViewData["duty_config"])
                                    {
                                        <dd><a lay-href="/v6admin/duty_config">值班表配置</a></dd>
                                    }
                                    @if ((bool)ViewData["duty_manager"])
                                    {
                                        <dd><a lay-href="/v6admin/duty_manager">值班表管理</a></dd>
                                    }
                                    @if ((bool)ViewData["birthday_list"])
                                    {
                                        <dd><a lay-href="/v6admin/birthday_list">生日名单管理</a></dd>
                                    }
                                </dl>
                            </li>
                        }
                        @if ((bool)ViewData["user"])
                        {
                            <li data-name="user" class="layui-nav-item">
                                <a href="javascript:;" lay-tips="用户" lay-direction="2">
                                    <i class="layui-icon layui-icon-user"></i>
                                    <cite>用户</cite>
                                </a>
                                <dl class="layui-nav-child">
                                    @if ((bool)ViewData["user_manager"])
                                    {
                                        <dd><a lay-href="/v6admin/user_manager">用户管理</a></dd>
                                    }
                                    @if ((bool)ViewData["user_role"])
                                    {
                                        <dd><a lay-href="/v6admin/user_role">角色管理</a></dd>
                                    }
                                    @if ((bool)ViewData["dept"])
                                    {
                                        <dd><a lay-href="/v6admin/dept">部门管理</a></dd>
                                    }
                                </dl>
                            </li>
                        }
                        @if ((bool)ViewData["set"])
                        {
                            <li data-name="set" class="layui-nav-item">
                                <a href="javascript:;" lay-tips="设置" lay-direction="2">
                                    <i class="layui-icon layui-icon-set"></i>
                                    <cite>设置</cite>
                                </a>
                                <dl class="layui-nav-child">
                                    @if ((bool)ViewData["cache_manager"])
                                    {
                                        <dd><a lay-href="/v6admin/cache_manager">缓存管理</a></dd>
                                    }
                                    @if ((bool)ViewData["site_config"])
                                    {
                                        <dd><a lay-href="/v6admin/site_config">网站配置</a></dd>
                                    }
                                </dl>
                            </li>
                        }
                    </ul>
                </div>
            </div>

            <!-- 页面标签 -->
            <div class="layadmin-pagetabs" id="LAY_app_tabs">
                <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
                <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
                <div class="layui-icon layadmin-tabs-control layui-icon-down">
                    <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                        <li class="layui-nav-item" lay-unselect>
                            <a href="javascript:;"></a>
                            <dl class="layui-nav-child layui-anim-fadein">
                                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                    <ul class="layui-tab-title" id="LAY_app_tabsheader">
                        <li lay-id="/v6admin/home/console" lay-attr="/v6admin/home/console" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
                    </ul>
                </div>
            </div>

            <!-- 主体内容 -->
            <div class="layui-body" id="LAY_app_body">
                <div class="layadmin-tabsbody-item layui-show">
                    <iframe src='@ViewData["return_url"]' frameborder="0" class="layadmin-iframe"></iframe>
                </div>
            </div>

            <!-- 辅助元素，一般用于移动设备下遮罩 -->
            <div class="layadmin-body-shade" layadmin-event="shade"></div>
        </div>
    </div>

    <script src="../layuiadmin/layui/layui.js"></script>
    <script>
        layui.config({
          base: '../layuiadmin/' //静态资源所在路径
        }).extend({
          index: 'lib/index' //主入口模块
        }).use('index');
    </script>
</body>
</html>
